package com.guotd.ticketSystemPlus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guotd.ticketSystemPlus.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    User login(@Param("id") String id, @Param("password") String password, @Param("type") int type);

    int changePwd(@Param("id") String id, @Param("password") String password);

    int register(@Param("id")String id, @Param("name") String name,@Param("password") String password);
}
